<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>微博系统登录</title>
    <link type="text/css" rel="stylesheet" href="/stylesheets/style.css" />
    <script type="text/javascript" src="/javascripts/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="/javascripts/common.js"></script>
  </head>
  <body>
    <div class="wrap">
      <div class="wrap-inner">

        <div class="header">
          <div class="login-infos">
            <p>欢迎您&nbsp;&nbsp;<a href="/login">登录</a>&nbsp;&nbsp;！</p>
            <!-- <p><a href="">songhailin</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">退出</a></p> -->
          </div>
          <div class="logo"><a href="/weibo"><img src="/images/logo.gif" /></a></div>
        </div>
        <div class="container">
          <div class="login-form">
            <% form_for @user_session, :url => user_session_path do |form| %>  
              <%= form.error_messages %>
              <div class="form">邮箱  <%= form.text_field :email %></div>
              <div class="form">密码  <%= form.password_field :password %></div>
              <div>
                <input type="submit" value="登录" class="button-login"/>
                <input type="button" value="注册" class="button-register" onclick="window.location.href='/register';return false;"/>
              </div>
            <%end%>
          </div>
        </div>

      </div>
    </div>
  </body>
</html>